package com.saihai.jiankang.ufJsgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.saihai.jiankang.ufJsgl.mapper.UfJsglMapper;
import com.saihai.jiankang.ufJsgl.domain.UfJsgl;
import com.saihai.jiankang.ufJsgl.service.IUfJsglService;

/**
 * 角色Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-11
 */
@Service
public class UfJsglServiceImpl implements IUfJsglService 
{
    @Autowired
    private UfJsglMapper ufJsglMapper;

    /**
     * 查询角色
     * 
     * @param id 角色主键
     * @return 角色
     */
    @Override
    public UfJsgl selectUfJsglById(Long id)
    {
        return ufJsglMapper.selectUfJsglById(id);
    }

    /**
     * 查询角色列表
     * 
     * @param ufJsgl 角色
     * @return 角色
     */
    @Override
    public List<UfJsgl> selectUfJsglList(UfJsgl ufJsgl)
    {
        return ufJsglMapper.selectUfJsglList(ufJsgl);
    }

    /**
     * 查询角色列表
     *
     * @param ufJsgl 角色
     * @return 角色
     */
    @Override
    public List<UfJsgl> listrole(UfJsgl ufJsgl)
    {
        return ufJsglMapper.listrole(ufJsgl);
    }

    /**
     * 查询教职工角色
     *
     * @param id 角色
     * @return 角色
     */
    @Override
    public List<UfJsgl> selectJzgRole(Long id)
    {
        return ufJsglMapper.selectJzgRole(id);
    }



    /**
     * 新增角色
     * 
     * @param ufJsgl 角色
     * @return 结果
     */
    @Override
    public int insertUfJsgl(UfJsgl ufJsgl)
    {
        return ufJsglMapper.insertUfJsgl(ufJsgl);
    }

    /**
     * 修改角色
     * 
     * @param ufJsgl 角色
     * @return 结果
     */
    @Override
    public int updateUfJsgl(UfJsgl ufJsgl)
    {
        return ufJsglMapper.updateUfJsgl(ufJsgl);
    }

    /**
     * 批量删除角色
     * 
     * @param ids 需要删除的角色主键
     * @return 结果
     */
    @Override
    public int deleteUfJsglByIds(Long[] ids)
    {
        return ufJsglMapper.deleteUfJsglByIds(ids);
    }

    /**
     * 删除角色信息
     * 
     * @param id 角色主键
     * @return 结果
     */
    @Override
    public int deleteUfJsglById(Long id)
    {
        return ufJsglMapper.deleteUfJsglById(id);
    }
}
